import request from '@/utils/request'

 //API常量
 const APIS = {
  V1: "/v1"
}

export function createCustomer(data) {
  return request({
    url: APIS.V1+`/system/customer`,
    method: 'post',
    data
  })
}
// 编辑客户信息
export function editCustomer(data) {
  return request({
    url: APIS.V1+`/system/customer/editCustomer`,
    method: 'post',
    data
  })
}

export function createCustomerDraft(data) {
  return request({
    url: APIS.V1+`/system/customer/draft`,
    method: 'post',
    data
  })
}


export function selectCustomer(params) {
  return request({
    url: APIS.V1+`/system/customer`,
    method: 'get',
    params: params
  })
}

export function deleteCreditLoan(params) {
  return request({
    url: APIS.V1+`/system/creditLoan`,
    method: 'delete',
    params: params
  })
}

export function creditExistIdCardNoCheck(idCardNo) {
  return request({
    url: APIS.V1+`/system/customer/creditExistIdCardNoCheck?idCardNo=`+idCardNo,
    method: 'get'
  })
}


